﻿<Window x:Class="CPPEI.Coolzon.Designer.Views.SpecificVersionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="获取" Height="400" Width="600" WindowStartupLocation="CenterScreen"
        Style="{DynamicResource WindowStyle}">
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <ListView Grid.Row="0"  x:Name="_ctlFileListView">
            <ListView.View >
                <GridView>
                    <GridView.Columns>
                        <GridViewColumn>
                            <GridViewColumn.HeaderTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <TextBlock HorizontalAlignment="Center" Margin="2" Text="更改"/>
                                    </Grid>
                                </DataTemplate>
                            </GridViewColumn.HeaderTemplate>
                            <GridViewColumn.CellTemplate>
                                <DataTemplate DataType="local:ItemHistory">
                                    <StackPanel Orientation="Horizontal" Margin="0,3,0,3">
                                        <TextBlock Text="{Binding Path=Action}" Margin="5,0,0,0" ></TextBlock>
                                    </StackPanel>
                                </DataTemplate>
                            </GridViewColumn.CellTemplate>
                        </GridViewColumn>
                        <GridViewColumn>
                            <GridViewColumn.HeaderTemplate>
                                <DataTemplate >
                                    <Grid>
                                        <TextBlock HorizontalAlignment="Center" Margin="2" Text="用户" />
                                    </Grid>
                                </DataTemplate>
                            </GridViewColumn.HeaderTemplate>
                            <GridViewColumn.CellTemplate>
                                <DataTemplate DataType="local:ItemHistory">
                                    <StackPanel Orientation="Horizontal" Margin="0,3,0,3">
                                        <TextBlock Text="{Binding Path=Operator}" Margin="5,0,0,0" ></TextBlock>
                                    </StackPanel>
                                </DataTemplate>
                            </GridViewColumn.CellTemplate>
                        </GridViewColumn>
                        <GridViewColumn>
                            <GridViewColumn.HeaderTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <TextBlock HorizontalAlignment="Center" Margin="2" Text="日期"/>
                                    </Grid>
                                </DataTemplate>
                            </GridViewColumn.HeaderTemplate>
                            <GridViewColumn.CellTemplate>
                                <DataTemplate DataType="local:ItemHistory">
                                    <TextBlock Text="{Binding Path=OperatedTime}" Margin="10"></TextBlock>
                                </DataTemplate>
                            </GridViewColumn.CellTemplate>
                        </GridViewColumn>
                        <GridViewColumn>
                            <GridViewColumn.HeaderTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <TextBlock HorizontalAlignment="Center" Margin="2" Text="版本号"/>
                                    </Grid>
                                </DataTemplate>
                            </GridViewColumn.HeaderTemplate>
                            <GridViewColumn.CellTemplate>
                                <DataTemplate DataType="local:ItemHistory">
                                    <TextBlock Text="{Binding Path=Version}" Margin="10"></TextBlock>
                                </DataTemplate>
                            </GridViewColumn.CellTemplate>
                        </GridViewColumn>
                    </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>
        <Grid Grid.Row="1">
            <StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Left">
                <Label Content="开始日期" Margin="5" Height="25" Width="100" HorizontalContentAlignment="Right"></Label>
                <DatePicker Name="txtDateTime" Width="100" Height="25" HorizontalAlignment="Left" SelectedDateChanged="txtDateTime_SelectedDateChanged"></DatePicker>

                <Label Content="结束日期" Margin="5" Height="25" Width="100" HorizontalContentAlignment="Right"></Label>
                <DatePicker Name="txtEndTime" Width="100" Height="25" HorizontalAlignment="Left"  SelectedDateChanged="txtDateTime_SelectedDateChanged"></DatePicker>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="2">
            <StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}" Name="btnGet" Content="获 取" Width="100" Height="30" Click="btnGet_Click" />
                <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}" Name="btnClose" Content="取消" Width="100" Height="30" Margin="20,0,0,0" Click="btnClose_Click"></Button>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
